﻿//DevExpress Js函数的扩展
function DevEx() {
    var o = this;
    this.OnLostFocus = function (s, e) {
        if (s.GetValue() != "" && s.GetValue() != null)
            return;

        var input = s.GetInputElement();
        var nullText = s.errorText;
        input.style.color = "LightSteelBlue";
        input.value = nullText;
    };

    this.OnGotFocus = function (s, e) {
        var input = s.GetInputElement();
        var nullText = s.errorText;
        if (input.value == nullText) {
            input.value = "";
            input.style.color = "black";
        }
    };

    this.OnInit = function (s, e) {
        o.OnLostFocus(s, e);
    };
}
var DevExObj = new DevEx();
